package cn.aylog.conf;

import org.springframework.beans.factory.annotation.Configurable;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.PropertySource;

@Configurable
@PropertySource({"classpath:db.properties", "classpath:db2.properties"})
public class JdbcConfig {

    @Value("${db.driver}")
    private String driver;

    @Value("${db.url}")
    private String url;

    @Bean
    public String getDriver() {
        System.out.println(url);
        return this.driver;
    }

}
